<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "admin".
 *
 * @property integer $id
 * @property string $username
 * @property string $password
 * @property string $email
 * @property string $outh_type
 * @property string $login_count
 * @property integer $login_time
 * @property integer $create_time
 */
class Admin extends \yii\db\ActiveRecord
{
    //model覆盖此方法
    public static function getDb ()
    {
        parent::getDb (); // TODO: Change the autogenerated stub
        return Yii::$app->db2;
    }
    //表明
    public static function tableName ()
    {
        parent::tableName (); // TODO: Change the autogenerated stub
        return 'admin';
    }


}
